package com.hrms.controller;

import com.hrms.common.AjaxResult;
import com.hrms.common.BaseController;
import com.hrms.domain.User;
import com.hrms.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/admin/user")
public class UserController extends BaseController {
    @Autowired
    private UserService userService;

    @PostMapping("/login")
    public Map login(@RequestBody User user){
        return userService.login(user);
    }

}
